package cn.iocoder.yudao.framework.common.enums;

import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 用户角色枚举
 *
 * @author 芋道源码
 */
@Getter
@AllArgsConstructor
public enum CommonYhjsEnum implements ArrayValuable<Integer> {

    QB(0, "全部"),
    SHF(1, "收货方"),
    FHF(2, "发货方");

    public static final Integer[] ARRAYS = Arrays.stream(values()).map(CommonYhjsEnum::getStatus).toArray(Integer[]::new);

    /**
     * 状态值
     */
    private final Integer status;
    /**
     * 状态名
     */
    private final String name;

    @Override
    public Integer[] array() {
        return ARRAYS;
    }

}
